package com.xqboss.apps.service.equipment;

import cn.hutool.core.lang.Assert;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xqboss.apps.domain.equipment.EquipmentLevelPrice;
import com.xqboss.apps.mapper.equipment.EquipmentLevelPriceMapper;
import com.xqboss.common.exception.ServiceException;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.Objects;

/**
 * <p>
 * 装备-等级价格 服务实现类
 * </p>
 *
 * @author 木鱼
 * @since 2023-11-30
 */
@Service
@Slf4j
public class EquipmentLevelPriceService extends ServiceImpl<EquipmentLevelPriceMapper, EquipmentLevelPrice> {

    /**
     * 获取装备等级价格配置
     * @param nftId
     * @param nftNumberId
     */
    public EquipmentLevelPrice getEquipmentLevelPrice(Long nftId, Long nftNumberId) {
        EquipmentLevelPrice levelPrice = baseMapper.getEquipmentLevelPrice(nftId, nftNumberId);
        return levelPrice;
    }
}